package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.domain.customer.Customer;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface CustomerRepository {

    /**
     * 客户
     *
     * @return
     */
    List<Customer> list();

    /**
     * 根据id获取客户
     *
     * @param customerId 客户ID
     * @return
     */
    Customer getById(Long customerId);

    /**
     * 根据租户获取
     *
     * @param tenantId
     */
    void getByTenantId(Long tenantId);

    Customer getByCompanyId(Long ownerCompanyId, Long companyId);

    Customer getCustomerById(Long customerId);

    List<Long> getByTime(String startTime, String endTime);

    List<Long> getByTenantIdTime(Long tenantId, String startTime, String endTime);
}
